package com.wjf.shortlink.shortlink.dto.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//短链接分页返回参数
@Data
public class ShortLinkPageRespDTO {
    //id
    private Long id;
    //域名
    private String domain;
    //短链接
    private String shortUri;
    //完整短链接
    private String fullShortUrl;
    //原始短链接
    private String originUrl;
    //分组标识
    private String gid;
    //有效期标识0：永久有效 1：自定义
    private Integer validDateType;
    //启用标识0：启用 1：未启用
    private Integer enableStatus;
    //有效期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date validDate;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //描述
    private String describe;
    //网址标识
    private String favicon;
    //历史PV
    private Integer totalPv;
    //今日PV
    private Integer todayPv;
    //历史UV
    private Integer totalUv;
    //今日UV
    private Integer todayUv;
    //历史UIP
    private Integer totalUip;
    //今日UIP
    private Integer todayUip;
}
